const config = {
  //本地测试模式
  vers:'v1.0.1',
  isFile: false,
  appid:'wxd3c339371dcf9639',
  client:'limi',
  wifi_ser_client: 'lanbo',
  // imgmark: '?watermark/2/text/5bCP6Im-5LqR6ZSB/fill/I0Y1RkZGQQ==/fontsize/30/dx/1/dy/10/gravity/south/font/c2ltaGVp6buR5L2TLnR0Zg==', //north northeast south
  imgmark: '', //north northeast south
  pic_rotate:'?imageMogr2/rotate/',
  phone:'',
  TemplateId:'2Sil5WMJYf8mqxvlw-R99Azf0GXkFG5_bZnOw-QgDq0',
  url:{
    hostUrl:'https://www.lanbocn.vip',
    Login: 'https://www.lanbocn.vip/wx/api/login',
    getPhone: 'https://www.lanbocn.vip/wx/api/getphonenum',
    addDev: 'https://www.lanbocn.vip/wx/api/adddevice',
    addOthderDev: 'https://www.lanbocn.vip/wx/api/addothderevice',
    getDevList:'https://www.lanbocn.vip/wx/api/getdevice',
    getMsgList: 'https://www.lanbocn.vip/wx/api/getdevicemsg',
    getDevInfo: 'https://www.lanbocn.vip/wx/api/getdeviceinfo',
    DevRename: 'https://www.lanbocn.vip/wx/api/devicerename',
    getDevName: 'https://www.lanbocn.vip/wx/api/getdevicename',
    DelDev: 'https://www.lanbocn.vip/wx/api/deldevice',
    getMsgOn: 'https://www.lanbocn.vip/wx/api/getmsgswitch',
    setMsgOn: 'https://www.lanbocn.vip/wx/api/setmsgswitch',
    setDeviceAuthOn: 'https://www.lanbocn.vip/wx/api/setdeviceauth',
    setFidAuthOn: 'https://www.lanbocn.vip/wx/api/setfidauth',
    getClientToken:'https://www.lanbocn.vip/wx/api/getclienttoken',
    checkUnlockPwd: 'https://www.lanbocn.vip/wx/api/checklockpwd',
    getOtherUser: 'https://www.lanbocn.vip/wx/api/getotheruser',

    setUnlockPow: 'https://www.lanbocn.vip/wx/api/setlockpwd',
    addReUser: 'https://www.lanbocn.vip/wx/api/addreuser',
    delReUser: 'https://www.lanbocn.vip/wx/api/delreuser',
    getReUser: 'https://www.lanbocn.vip/wx/api/getreuser',
    isOnline: 'https://www.lanbocn.vip/wx/api/isonline',
    CosImgUrl: 'http://cos.lanbocn.vip/',
    wechatQrUrl: 'https://www.lanbocn.vip/',
    shareQrcodeUrl: "http://lanbocn.vip/wx/api/getqrcode?str=https://lanbocn.vip/wechat/miniprogram/?id=",
    shareQrdata: "https://lanbocn.vip/wechat/miniprogram/?id=",
    // CosImgUrl: 'https://aipai-1253148289.cos.ap-chengdu.myqcloud.com/',
  },
  mqtt:{
    url:'wxs://www.lanbocn.vip/mqtt',
    clientId: "clientUserId",
    username: "mqttlanbo",
    password: 'lanbo@147258',
  },
  mqtt_baidu: {
    url: 'wxs://akgvzdx.iot.gz.baidubce.com/mqtt',
    clientId: "clientUserId",
    adp_type:"thingidp",
    IoTCoreId: "akgvzdx",
    DeviceKey: "lanbo",
    algorithm_type: "MD5",
    device_secret: "KzwFeuyLIgTOMYxL",
    username: "thingidp@akgvzdx|lanbo|1601192028|MD5",
    password: '5a8b0d2ca12ba9a2bc3c640ef677628a',
    msg_top: "$iot/lanbo/user/lock_msg",//"$iot/lanbo/msg",
    unlock_top: "aipai_unlock"//"apply_unlock",

  },
  imgprefix: 'http://lanbocn.vip/resources/', // 图片前缀
  // msg_tpye: { // 消息映射
  //   '1': '门铃消息',
  //   '2': '图片消息'
  // },
  msg_value0: { // 消息映射
    '0': '已锁上',
    '1': '已打开',
  },
  msg_value1: { // 消息映射
    '0': '门锁',//外门
    '1': '门锁',//内门
  },
   msg_value2: { // 消息映射
     0: '智能锁被撬',
     1: '强行开门',
     2: '指纹尝试开锁被冻结',
     3: '密码尝试开锁被冻结',
     4: '卡尝试开锁被冻结',
     5: '钥匙尝试开锁被冻结',
     6: '遥控尝试开锁被冻结',
     7: '',
     8: '胁迫开锁报警',
     9: '特斯拉开锁报警',
     10: '系统冻结锁定报警',
     11: '人脸尝试开锁报警',
     12: '掌纹尝试开锁报警',
     13: '陌生人逗留报警',
     14: '火灾报警',
     15: '门口有陌生人',
     16: '非活体人脸',
     17: '被人劫持',
     18: '被人尾随',
     19: '门口有人徘徊',
     20: '指纹尝试开锁报警',
     21: '密码尝试开锁报警',
     22: '卡尝试开锁报警',
     23: '系统锁定报警',
  },
  msg_value3: { // 消息映射
    '0': '忘拔钥匙',
    '1': '锁门提醒',
    '2': '敲门提醒',
    '3': 'SOS求救提醒',
    '4': '门没关好',
    '5': '门已反锁',
    '6': '门已解锁',
    '7': '常开已开启',
    '8': '电量低压提醒',
    '9': '添加用户',
    '10': '删除用户',
    '11': '用户初始化',
    '12': '门铃提醒',
  },
  msg_user: { // 消息映射
    '0': '默认用户',
    '1': '指纹用户',
    '2': '密码用户',
    '3': 'IC卡用户',
    '4': '钥匙用户',
    '5': '手机用户',
    '6': '人脸用户',
    '7': '掌纹用户',
    '8': '虹膜用户',
    '9': '临时用户',
  },
  msg_type_map: {
  }
}
module.exports = config;
